package com.mask.im.sdk.config;

import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * SDK配置属性映射（对应application.yml中的im.sdk.kafka前缀）
 *
 * @author jian
 */
@Setter
@Getter
@ConfigurationProperties(prefix = "im.sdk.kafka")
public class KafkaSdkProperties {
    // 默认配置
    private String bootstrapServers = "localhost:9092";
    private String topic = "im-messages";
    private int partitions = 1;
    private int retries = 3;
    private String acks = "1";
    private int deliveryTimeoutMs = 30000;
    private int batchSize = 16384;
    private int lingerMs = 1;
    private int bufferMemory = 33554432;
}
